def static call(String branch) {
    // conf
    Map conf = new HashMap()
    // dev
    conf.put("dev", dev())
    // test
    conf.put("test", test())
    // end
    return conf
}

def static dev() {
    // dev conf
    Map dev = new HashMap()
    // code
    // dev.put("gitUrl", "")
    dev.put("gitCredentialsId", "0810b8ab-896b-4599-88ff-24e5d6ca0a79")
    // config
    dev.put("confUrl", "http://xxx/config.git")
    dev.put("confCredentialsId", "0810b8ab-896b-4599-88ff-24e5d6ca0a79")
    // only the dev env has
    Set sonarqube = new HashSet()
    sonarqube.add("xxx-name")
    dev.put("sonarqube", sonarqube)
    Set dotDelRepo = new HashSet()
    dotDelRepo.add("xxx-job")
    dotDelRepo.add("xxx-gateway")
    dev.put("dotDelRepo", dotDelRepo)
    return dev
}

def static test() {
    // test conf
    Map test = new HashMap()
    // code
    // test.put("gitUrl", "")
    test.put("gitCredentialsId", "0810b8ab-896b-4599-88ff-24e5d6ca0a79")
    // config
    test.put("confUrl", "http://xxx/config.git")
    test.put("confCredentialsId", "0810b8ab-896b-4599-88ff-24e5d6ca0a79")
    Set dotDelRepo = new HashSet()
    dotDelRepo.add("xxx-job")
    dotDelRepo.add("xxx-gateway")
    test.put("dotDelRepo", dotDelRepo)
    return test
}